package com.watchthelan.domain;

import java.util.List;

public class Event {
	private long id;
	private String name;
	private String description;
	private long administrator;
	private long server;
	private int minute; //0-59
	private int hour; //0-23
	private int month; //1-12;
	private int day;
	private List<Server> forServers; // the servers this Event applies for

	/* These are use only for the view */ 
	private String[] minutes;
	private String[] hours;
	private String[] months;
	private List<Server> servers;
	
	{
		minutes = new String[60];
		for (int i = 0; i < 60; i++) {
			if (i < 10) {
				minutes[i] = "0" + i;
			} else {
				minutes[i] = "" + i;
			}
		}
		hours = new String[24];
		for (int i = 0; i < 24; i++) {
			if (i < 10) {
				hours[i] = "0" + i;
			} else {
				hours[i] = "" + i;
			}
		}
		months = new String[12];
		for (int i = 0; i < 12; i++) {
			months[i] = "" + i;
		}
	}
	
	public long getId() {
		return id;
	}
	
	public void setId(long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public long getAdministrator() {
		return administrator;
	}
	
	public void setAdministrator(long administrator) {
		this.administrator = administrator;
	}
	
	public long getServer() {
		return server;
	}
	
	public void setServer(long server) {
		this.server = server;
	}
	
	public int getMinute() {
		return minute;
	}
	
	public void setMinute(int minute) {
		this.minute = minute;
	}
	
	public int getHour() {
		return hour;
	}
	
	public void setHour(int hour) {
		this.hour = hour;
	}
	
	public int getMonth() {
		return month;
	}
	
	public void setMonth(int month) {
		this.month = month;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public String[] getMinutes() {
		return minutes;
	}

	public void setMinutes(String[] minutes) {
		this.minutes = minutes;
	}

	public String[] getHours() {
		return hours;
	}

	public void setHours(String[] hours) {
		this.hours = hours;
	}

	public String[] getMonths() {
		return months;
	}

	public void setMonths(String[] months) {
		this.months = months;
	}

	public List<Server> getServers() {
		return servers;
	}

	public void setServers(List<Server> servers) {
		this.servers = servers;
	}
	
	public List<Server> getForServers() {
		return forServers;
	}

	public void setForServers(List<Server> forServers) {
		this.forServers = forServers;
	}
}
